package com.wigem.approve.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wigem.framework.common.util.common.GuidUtils;

import java.util.Date;

/**
 * 街乡字典对象 dic_region
 *
 * @author DH
 * @date 2024-05-27
 */

@Data
@ApiModel
@TableName("dic_region")
public class DicRegionEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value = "id", name = "id")
    @TableId
    private String id;

    /**
     * 街乡id
     */
    @ApiModelProperty(value = "街乡id", name = "regionId")
    @TableField(value = "region_id")
    private String regionId;

    /**
     * 街乡名称
     */
    @ApiModelProperty(value = "街乡名称", name = "regionName")
    @TableField(value = "region_name")
    private String regionName;

    public void create() {
        this.id = GuidUtils.generate();
    }

    public void modify(String keyValue) {
        this.id = keyValue;
    }

}
